package org.jwcloud.project.module.zx.txzldp.controller;

import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

import org.jwcloud.project.module.zx.baseManager.service.repository.MatBaseManagerRepository;
import org.jwcloud.project.module.zx.common.FmtUtil;
import org.jwcloud.project.module.zx.common.Resp;
import org.jwcloud.project.module.zx.common.repository.RptCommonRepository;
import org.jwcloud.project.module.zx.common.service.RptUtService;
import org.jwcloud.project.module.zx.txzldp.service.repository.TxzldpCommonViewRepository;
import org.jwcloud.project.module.zx.workTime.service.repository.MatWorkTimeRepository;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

import com.github.pagehelper.PageHelper;
import com.jw.mid.mm.comm.common.controller.BaseController;
import com.jw.mid.mm.comm.common.controller.CrudController;
import com.jw.mid.mm.comm.common.json.Response;
import com.jw.mid.mm.comm.common.pagination.ListBounds;
import com.jw.mid.mm.comm.common.pagination.ListSlice;
import com.jw.mid.mm.comm.common.pagination.PageListSlice;
import com.jw.mid.mm.comm.common.pagination.Pagination;
import com.jw.mid.mm.comm.common.service.CrudService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;

@Api(value = "API - Controlle",
description = "铁西监督展示平台", tags = "jd")
@RestController
@Transactional
@RequestMapping("/rest/txzldp/jd")
public class TxzldpJdController extends BaseController{
	 
	@Autowired
    private SqlSessionTemplate sqlSessionTemplate;
	
	@Autowired
    public RptUtService rptUtService;
	
	
	@GetMapping("queryAll")
    @ApiOperation(value = "查询全部", notes = "queryFundAnalyse 资金分析  queryWtfx 问题分析; queryGlywts 各领域问题数(个);queryDyjlljcdx 党员及六类监察对象\r\n" + 
    		"; querySjfx 数据分析; queryXmfx 项目分析;")
    @ApiImplicitParams({
    })
    public Resp queryAll(
    		@RequestParam(required = false) Map<String,String> param
    		){
		Map res = new HashMap();
		res.put("queryFundAnalyse", this.sqlSessionTemplate.selectList("txzldp.jd.queryFundAnalyse", param));
		res.put("queryWtfx", this.sqlSessionTemplate.selectList("txzldp.jd.queryWtfx", param));
		res.put("queryGlywts", this.sqlSessionTemplate.selectList("txzldp.jd.queryGlywts", param));
		res.put("queryDyjlljcdx", this.sqlSessionTemplate.selectList("txzldp.jd.queryDyjlljcdx", param));
		res.put("querySjfx", this.sqlSessionTemplate.selectList("txzldp.jd.querySjfx", param));
		res.put("queryXmfx", this.sqlSessionTemplate.selectList("txzldp.jd.queryXmfx", param));
		return Resp.success(res);
    }
	
}